package com.aaa.bookproject.controller;


import com.aaa.bookproject.service.ITBookService;
import com.aaa.bookproject.util.PageUtil;
import com.aaa.bookproject.util.ResultData;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LvYongQi
 * @since 2021-05-09
 */
@RestController
@RequestMapping("/t-book")
public class TBookController {

    @Resource
    private ITBookService bookService;

    @PostMapping("findBookAndType")
    public ResultData findBookAndType(PageUtil pageUtil){
        return bookService.findBookAndType(pageUtil);
    }
}

